<!DOCTYPE html>
<html lang="en-us">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <title>课后作业 | APr</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1">
    <meta name="generator" content="Hugo 0.75.1" />
    
    
      <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    

    
    
      <link href="/swi/dist/css/app.4fc0b62e4b82c997bb0041217cd6b979.css" rel="stylesheet">
    

    

    
      

    

    
    
      <link href="/swi/post/index.xml" rel="alternate" type="application/rss+xml" title="APr" />
      <link href="/swi/post/index.xml" rel="feed" type="application/rss+xml" title="APr" />
      
    
    
    <meta property="og:title" content="课后作业" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://apr7hx.gitee.io/swi/post/" />
<meta property="og:updated_time" content="2020-09-25T00:00:00+00:00" />
<meta itemprop="name" content="课后作业">
<meta itemprop="description" content="">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="课后作业"/>
<meta name="twitter:description" content=""/>

	
  </head>

  <body class="ma0 avenir bg-near-white">

    

  
  
  <header class="cover bg-top" style="background-image: url('http://apr7hx.gitee.io/swi/images/notebook.jpg');">
    <div class="bg-black-60">
      <nav class="pv3 ph3 ph4-ns" role="navigation">
  <div class="flex-l justify-between items-center center">
    <a href="/swi/" class="f3 fw2 hover-white no-underline white-90 dib">
      
        APr
      
    </a>
    <div class="flex-l items-center">
      

      
        <ul class="pl0 mr3">
          
          <li class="list f5 f4-ns fw4 dib pr3">
            <a class="hover-white no-underline white-90" href="/swi/post/" title="课后作业 page">
              课后作业
            </a>
          </li>
          
        </ul>
      
      















    </div>
  </div>
</nav>

      <div class="tc-l pv4 pv6-l ph3 ph4-ns">
        <h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
          课后作业
        </h1>
        
      </div>
    </div>
  </header>


    <main class="pb7" role="main">
      

  <article class="pa3 pa4-ns nested-copy-line-height nested-img">
    <section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
      
    </section>
    <aside class="flex-ns flex-wrap justify-around mt5">
      
        <div class="relative w-100 w-30-l mb4 bg-white">
          
            <div class="mb3 pa4 mid-gray overflow-hidden">
    
      <div class="f6">
        October 27, 2020
      </div>
    
    <h1 class="f3 near-black">
      <a href="http://apr7hx.gitee.io/swi/post/08/" class="link black dim">
        作业8
      </a>
    </h1>
    <div class="nested-links f5 lh-copy nested-copy-line-height">
      FUNCTION A (num)a = num % 16IF number / 16 != 0 THENA(num/16)CASE num % 16 OF condition 10~15:PRINT: A, B, C, D, E, FOTHERS:PRINT:a  #include&lt;stdio.h&gt;void A (int num) { int a; a = num % 16; if (num &gt;= 16) A(num/16); switch(a) { case 10: printf(&#34;A&#34;); break; case 11: printf(&#34;B&#34;); break; case 12: printf(&#34;C&#34;); break; case 13: printf(&#34;D&#34;); break; case 14: printf(&#34;E&#34;); break; case 15: printf(&#34;F&#34;); break; default: printf(&#34;%d&#34;, a); } } int main(void) { int num; scanf(&#34;%d&#34;, &amp;num); A(num); return 0; } -1, 0, 1, F, 1A, CC1    名词解释:
    </div>
  </div>

        </div>
      
        <div class="relative w-100 w-30-l mb4 bg-white">
          
            <div class="mb3 pa4 mid-gray overflow-hidden">
    
      <div class="f6">
        October 20, 2020
      </div>
    
    <h1 class="f3 near-black">
      <a href="http://apr7hx.gitee.io/swi/post/07/" class="link black dim">
        作业7
      </a>
    </h1>
    <div class="nested-links f5 lh-copy nested-copy-line-height">
         LOD # 1–&gt;STO X –&gt; LOD X –&gt; ADD#3 –&gt; STO Y –&gt; HLT Main memory –&gt; fetch instruction –&gt; Decode instruction –&gt;Registers –&gt;Get data –&gt;Execute the instruction –&gt; Main memory   IR：指令寄存器，用来保存当前正在执行的一条指令 PC：程序计数器，存放下一条指令在内存中的地址 ACC：累加寄存器，功能是当运算器的算术逻辑单元(ALU)执行全部算术和逻辑运算时，为ALU提供一个工作区，暂时存放ALU运算结果       指令和数据 yes 例：ADD X :00000000 10000000 前八位称命令指示，第四位为寻址模式，例子中为0，表示操作数是该地址的内容；后八位称为操作数，表示数值或地址，例子中表示内存中地址128。整个例子表示加上将内存地址128中的数据    名词解释：
 汇编语言: A language that uses mnemonic codes（助记忆符号） to represent machinelanguage instructions 编译: A program that translates a high-level language program into machine code 命令式语言: Imperative programming is a programming paradigm that uses statements that change a program’s state 函数编程语言: Functional programming is a programming paradigm–a style of building the structure and elements of computer programs–that treats computation as the evaluation of mathematical functions and avoid changing-state and mutable data 过程式编程: A programming paradigm, derived from structured programming, based upon the concept of the procedure call    
    </div>
  </div>

        </div>
      
        <div class="relative w-100 w-30-l mb4 bg-white">
          
            <div class="mb3 pa4 mid-gray overflow-hidden">
    
      <div class="f6">
        October 13, 2020
      </div>
    
    <h1 class="f3 near-black">
      <a href="http://apr7hx.gitee.io/swi/post/10-13/" class="link black dim">
        项目3-硬件编程--电路与二进制运算
      </a>
    </h1>
    <div class="nested-links f5 lh-copy nested-copy-line-height">
      任务 1：建立一个简单电路：
（1） 设计与门验证电路 （2） 画真值表验证与门功能
   IN A IN B Out     0 0 0   0 1 0   1 0 0   1 1 1    任务 2：验证电路等价:
（1）分别建立电路 A（B+C）和 AB+AC 在一个界面上 （2）并枚举所有可能输入，用真值表记录结果
   A B C O1 O2     0 0 0 0 0   0 0 1 0 0   0 1 0 0 0   0 1 1 0 0   1 0 0 0 0   1 0 1 1 1   1 1 0 1 1   1 1 1 1 1    (不知道为什么表格没有线&hellip;)
    </div>
  </div>

        </div>
      
    </aside>
    
<ul class="pagination">
  <li class="page-item">
    <a href="/swi/post/" class="page-link" aria-label="First"><span aria-hidden="true">&laquo;&laquo;</span></a>
  </li>
  <li class="page-item">
    <a href="/swi/post/page/2/" class="page-link" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
  </li>
  <li class="page-item">
    <a class="page-link" href="/swi/post/">1</a>
  </li>
  <li class="page-item">
    <a class="page-link" href="/swi/post/page/2/">2</a>
  </li>
  <li class="page-item active">
    <a class="page-link" href="/swi/post/page/3/">3</a>
  </li>
  <li class="page-item">
    <a class="page-link" href="/swi/post/page/4/">4</a>
  </li>
  <li class="page-item disabled">
    <span aria-hidden="true">&nbsp;&hellip;&nbsp;</span>
  </li>
  <li class="page-item">
    <a class="page-link" href="/swi/post/page/6/">6</a>
  </li>
  <li class="page-item">
    <a href="/swi/post/page/4/" class="page-link" aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
  </li>
  <li class="page-item">
    <a href="/swi/post/page/6/" class="page-link" aria-label="Last"><span aria-hidden="true">&raquo;&raquo;</span></a>
  </li>
</ul>


  </article>

    </main>
    <footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
  <div class="flex justify-between">
  <a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://apr7hx.gitee.io/swi" >
    &copy;  APr 2021 
  </a>
    <div>














</div>
  </div>
</footer>

    

  <script src="/swi/dist/js/app.3fc0f988d21662902933.js"></script>


  </body>
</html>
